package com.lagou.filter;

import java.util.Map;
import java.util.TreeMap;

public class TestDemo {

    public static void main(String[] args) {

        TreeMap treeMapA = new TreeMap();
        treeMapA.put(2, "two");
        treeMapA.put(1, "one");
        treeMapA.put(3, "three");
        treeMapA.put(6, "six");
        treeMapA.put(5, "five");
        Double idx90A = 6.0;
        Map.Entry<Long, Integer> idx90EntryA = treeMapA.floorEntry(idx90A.longValue());
        Integer in = idx90EntryA.getValue();
        System.out.println(in);
    }
}
